package cn.jboa.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.sql.Time;
import java.util.Date;

@Entity
@Table(name = "BIZ_CHECK_RESULT", schema = "SCOTT", catalog = "")
public class BizCheckResult {
    private int id;
    private Date checkTime;
 /*   private String checkerSn;*/
    private String result;
    private String comm;
    private SysEmployee checkEmployee;
    private Long claimId;

    @Basic
    @Column(name = "claim_id")
    public Long getClaimId() {
        return claimId;
    }

    public void setClaimId(Long claimId) {
        this.claimId = claimId;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="checker_sn")
    public SysEmployee getCheckEmployee() {
        return checkEmployee;
    }

    public void setCheckEmployee(SysEmployee checkEmployee) {
        this.checkEmployee = checkEmployee;
    }

    @Id
    @Column(name = "ID")
    @GenericGenerator(name="incrementName",strategy="increment")
    @GeneratedValue(generator="incrementName")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "CHECK_TIME")
    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

   /* @Basic
    @Column(name = "CHECKER_SN")
    public String getCheckerSn() {
        return checkerSn;
    }

    public void setCheckerSn(String checkerSn) {
        this.checkerSn = checkerSn;
    }
*/
    @Basic
    @Column(name = "RESULT")
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Basic
    @Column(name = "COMM")
    public String getComm() {
        return comm;
    }

    public void setComm(String comm) {
        this.comm = comm;
    }

}
